package com.bulletelc.apollopre.utils;

import android.os.Environment;

import java.io.File;

/**
 * author: lhl
 * date  : 2017/11/01
 * desc  : sd卡工具类
 */

public final class SDCardUtil {

    private SDCardUtil(){
        //emtpy
    }

    /**
     * 判断sd卡是否安装,
     * @return true:已安装 ,false:未安装
     */
    public static boolean isSDCardMounted() {
        return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
    }

    /**
     *
     * @return
     */
    public static String getSCCardPath() {
        return Environment.getExternalStorageDirectory().getAbsolutePath()+ File.separator;
    }
}
